package com.shop.mapper;

import com.shop.entity.Membership;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author XCH
 * @date 2025 - 06 - 09
 */
@Mapper
public interface MembershipMapper {
    /**
     * 查询会员
     * @param id
     * @return
     */
    List<Membership> listMembership(@Param("id")Integer id);
    /**
     * 修改会员
     * @param membership
     */
    void updateMembership(Membership membership);
    /**
     * 修改积分
     */
    void updatePoints(Membership membership);

    /**
     * 修改积分和等级
     * @param membership
     */
    void updatePointsAndLevel(Membership membership);
}
